import http from '@/utils/http'
const pre = 'data-statistic'
//设备统计
export const getDeviceStatistics = (params) => {
  const url = `/${pre}/device-statistic/queryDataByUserInfo`
  return http.post(url, params)
}
export const getDeviceDataStatistics = (params) => {
  const url = `/${pre}/device-statistic/getDeviceDataStatistics`
  return http.post(url, params)
}
export const getSocketCountGrow = (params) => {
  const url = `/${pre}/device-statistic/getSocketCountGrow`
  return http.post(url, params)
}
export const getStationCountGrow = (params) => {
  const url = `/${pre}/device-statistic/getStationCountGrow`
  return http.post(url, params)
}
export const getDeviceUsedStatistics = (params) => {
  const url = `/${pre}/device-statistic/getDeviceUsedStatistics`
  return http.post(url, params)
}
export const getSocketPerUser = (params) => {
  const url = `/${pre}/device-statistic/getSocketPerUser`
  return http.post(url, params)
}
export const selectStationList = (params) => {
  const url = `/${pre}/device-statistic/selectStationList`
  return http.post(url, params)
}
//资金统计
export const getTotalFundStatistic = (params) => {
  const url = `/${pre}/fund-statistic/selectTotalFundStatistic`
  return http.post(url, params)
}
export const getDailyFundStatistic = (params) => {
  const url = `/${pre}/fund-statistic/selectDailyFundStatistic`
  return http.post(url, params)
}
export const getMonthlyFundStatistic = (params) => {
  const url = `/${pre}/fund-statistic/selectMonthlyFundStatistic`
  return http.post(url, params)
}
export const getDailyProfitStatistic = (params) => {
  const url = `/${pre}/fund-statistic/selectDailyProfitStatistic`
  return http.post(url, params)
}
//设备统计
export const getTotalBillStatistic = (params) => {
  const url = `/${pre}/bill-statistic/selectTotalBillStatistic`
  return http.post(url, params)
}
export const getDailyBillStatistic = (params) => {
  const url = `/${pre}/bill-statistic/selectDailyBillStatistic`
  return http.post(url, params)
}
export const getMonthlyBillStatistic = (params) => {
  const url = `/${pre}/bill-statistic/selectMonthlyBillStatistic`
  return http.post(url, params)
}
export const getBillRatio = (params) => {
  const url = `/${pre}/bill-statistic/selectBillRatio`
  return http.post(url, params)
}
export const getProvinceBillStatistic = (params) => {
  const url = `/${pre}/bill-statistic/selectProvinceBillStatistic`
  return http.post(url, params)
}
export const getErrorBillReason = (params) => {
  const url = `/${pre}/bill-statistic/selectErrorBillReasonPercent`
  return http.post(url, params)
}
export const getMchErrorBillAmount = (params) => {
  const url = `/${pre}/bill-statistic/selectMchErrorBillAmount`
  return http.post(url, params)
}
